<?php
/**
 * The template for displaying Author Archives.
 *
 * @package Behold
 * @since Behold 1.0.0
 */
?>
 
<?php
	get_header();
	
		if ( have_posts() ) : 
			the_post();
		?>
		<h3 id="archive-type-title">
			<?php printf( __( 'Author Archives: %s', 'Behold' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?>
		</h3>
<?php
	behold_post_navigation( "nav-above" );
	endif;
?>

<div id="main" class="group">
	<div id="posts-container">
		<?php
			rewind_posts();
			if ( have_posts() ) :
				while ( have_posts() ) : 
					the_post();			
					if ( get_post_format() == "gallery" ):
						get_template_part( 'content', 'gallery' );
					else:
						get_template_part( 'content' );
					endif;
					endwhile;
				behold_post_navigation( "nav-below" );
			endif;
		?>
	</div>	<!-- closing of posts-container> -->
</div><!-- closing of main -->

<?php
	get_sidebar('right');
	get_footer(); 
?>